/**
 * 所有组件
 * @type {icon: string, title: string, type: string}
 * */

import {I18Parse} from '@lowcode/jpaas-base-lib';
import componentsLang from '@/language/lang/impl/design/components-lang.js';
const lang = componentsLang;
const i18n=function (langKey,text) {
	return I18Parse.getI18Val(lang.componentsLang,langKey, text)
}

export const allComponents = [
	{icon:'icon-colords-wenben', title:i18n("text","文本"),type:"text"},
	{icon:'icon-colords-fuwenben', title:i18n("quillEditor","富文本"),type:"quillEditor"},
	{icon:'icon-colords-time', title:i18n("realTime","实时时间"),type:"realTime"},
	{icon:'icon-colords-tianqi', title:i18n("weather","天气实况"),type:"weather"},
	{icon:'icon-colords-tubiao', title:i18n("chart","图表"),
		childList:[
			{
				name:i18n("bar","柱状图"),
				childList:[
					{
						icon:'icon-colorzhuzhuangtu', title:i18n("generalBar","常规柱状图"),type:"chart",chartType:"generalBar",
					},
					{
						icon:'icon-colorh-zhuzhuangtu', title:i18n("horizontalBar","横向柱状图"),type:"chart",chartType:"horizontalBar",
					},
					{
						icon:'icon-colordj-s-zhuzhuangtu', title:i18n("stackedBar","堆积柱状图"),type:"chart",chartType:"stackedBar",
					}
				]
			},{
				name:i18n("lineChart","折线图"),
				childList:[
					{
						icon:'icon-colorzhexiantu', title:i18n("lineChart","折线图"),type:"chart",chartType:"lineChart",
					},
					{
						icon:'icon-colorjianjitu', title:i18n("areaChart","面积图"),type:"chart",chartType:"areaChart",
					},
					{
						icon:'icon-colorduijimianjitu', title:i18n("stackedArea","堆积面积图"),type:"chart",chartType:"stackedArea",
					}
				]
			},
			{
				name:i18n("pieChart","饼图"),
				childList:[
					{
						icon:'icon-colorbingtu', title:i18n("pieChart","饼图"),type:"chart",chartType:"pieChart",
					},
					{
						icon:'icon-colorhuantu', title:i18n("ringChart","环形图"),type:"chart",chartType:"ringChart",
					},
				]
			},
			{
				name:i18n("others","其他"),
				childList:[
					{
						icon:'icon-colorloudoutu', title:i18n("funnelChart","漏斗图"),type:"chart",chartType:"funnelChart",
					},
					{
						icon:'icon-coloryibiaopan', title:i18n("gaugeChart","单色仪表盘"),type:"chart",chartType:"gaugeChart",
					},
					{
						icon:'icon-colorduoseyibiaopan', title:i18n("multiColorGauge","多色仪表盘"),type:"chart",chartType:"multiColorGauge",
					},
					{
						icon:'icon-colorzidingyitubiao', title:i18n("customChart","自定义图表"),type:"chart",chartType:"customChart",
					},
					{
						icon:'icon-colorxianzhuhunda', title:i18n("lineBar","线柱混搭"),type:"chart",chartType:"lineBar",
					},
					{
						icon:'icon-colorleidatu', title:i18n("radarMap","雷达图"),type:"chart",chartType:"radar"
					},
                    {
                        icon:'icon-colorzidingyitubiao', title:i18n("screenChart","screenChart"),type:"chart",chartType:"screenChart"
                    }
				]
			}
		]
	},
	{icon:'icon-colormap', title:i18n("map","地图"),type:"map"},
	{icon:'icon-colords-biaoge', title:i18n("table","表格"),type:"table"},
	{icon:'icon-colords-zhibiaoka', title:i18n("numerical","指标卡"),type:"numerical"},
	{icon:'icon-colords-sucai', title:i18n("material","素材"),
		childList:[
			{
				name:i18n("picture","图片"),
				childList:[{
						icon:'icon-colorbeijingtu', title:i18n("image","背景图"),type:"image",
					},{
						icon:'icon-colortubiao1', title:i18n("iconfont","图标"),type:"iconfont",
					},
				]
			}
		]
	},
	{icon:'icon-colords-shaixuanqi', title:i18n("filter","筛选器"),type:"filter"},
	{icon:'icon-colorshipin', title:i18n("video","视频"),type:"video"},
	{icon:'icon-colorzidingyi', title:i18n("custom","自定义组件"),type:"custom",
		childList:[{
			name:i18n("custom","自定义组件"),
			childList:[]
		}]},
]

export default allComponents;
